﻿@{
    Layout = null;
}
@using DotNet.Service
@model System.Collections.Generic.IEnumerable<DotNet.Model.BaseModuleEntity>
<div id="navMenu" class="menu" style="width: 100%;">
    <ul>
        @foreach (var item in Model)
        {
            if (item.ImageUrl == "0")
            {
                if (item.Code == "OA")
                {
                    <li><a id="kingroad_EPM_OA" href="@(string.Format(item.NavigateUrl, UserService.CurrUserInfo.UserName, UserService.CurrUserInfo.Password))" OtherSite="ture" target="_blank">
                        <span>@item.FullName</span></a></li>
                }
                else
                {
                    <li><a href="@item.NavigateUrl" OtherSite="ture" target="_blank"><span>@item.FullName</span></a></li>
                }
            }
            else
            {
                if ((UserService.CurrUserInfo.IsAdministrator && item.Code == "PERMISSION") || (!UserService.CurrUserInfo.IsAdministrator && item.Code == "Project.Information"))
                {
            <li class="selected"><a href="/Home/LeftNav/@item.Id" OtherSite="false"><span>@item.FullName</span></a></li>
                }
                else
                {
            <li><a href="/Home/LeftNav/@item.Id" OtherSite="false"><span>@item.FullName</span></a></li>
                }
            }
        }
    </ul>
</div>
